<?php
/**
* 用户数据操作类
* * @author 邝达峰
* @date 2014-09-19
*/

class usersModel extends dbModel {

	/**
	* 构造函数
	* @param:  NULL
	* @return: NULL
	* @access: public
	*/
	public function __construct(){}


	/**
	 * 通过用户名获取到用户信息
	 * @param string $username  用户名
	 * @param int $checkState 审核状态(0=待审核 1=审核不通过 2=审核通过 3=删除状态/被封帐号)
	 * @return array
	 * @access public
	 */
	public function getUserInfo($username = '',$checkState = 2)
	{
		if(!empty($username))
		{
			$strSql = "select id,username,userpwd,checkState,checker, checktime,dateline,firstTime from users where checkState = ".trim($checkState)." and username = '".trim($username)."'";
			$arrData = DB::select($strSql);
			return $arrData;
		}
	}


	 



}
?>